<!--#include file="../../../../p2.asp" -->
<!DOCTYPE html>
<html>
<head>
  <title>权限管理</title>
<%easp.include "h.asp"%>
</head>
<body>
  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-form layui-card-header layuiadmin-card-header-auto">
        <div class="layui-form-item">
<%
	t_prj_list(val("id"))
%>
		</div>
<div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="c_prj_save">立即提交</button>
          </div>
        </div>		
      </div>
    </div>
  </div>

  <script src="../../../layuiadmin/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '../../../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'useradmin', 'table'], function(){
    var $ = layui.$
    ,form = layui.form
    ,admin = layui.admin	
    ,table = layui.table;
    var $ = layui.$;
    form.render();
  form.on('submit(c_prj_save)', function(data){
		var field = data.field;
		$.get('../../../../p2.asp?now=' + new Date().getTime(), {
			data:field,
			"tid":"<%echo val("id")%>",
			action: "t_prj_save"
		},
		function(data) {
			if (data == '1') {
				layer.msg("成功!!");
			} else {
				layer.msg("失败！！ "+data);
			}
		});    
    return false;
  });	
	});	
  </script>
</body>
</html>